package homework12月9号补交.homework2.d3;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;
import java.util.List;

public class Test {
    public static void main(String[] args) throws IOException, IllegalAccessException, InstantiationException, ClassNotFoundException {
        List<String> list = FileUtils.readLines(new File("D:\\ldea dashuju\\day.12.6\\src\\czxy\\homework2\\d3\\d3.properties"));
        for (String s : list) {
            Class<?> demoClassClass = Class.forName(s);
            DemoClass demoClass = (DemoClass) demoClassClass.newInstance();
            demoClass.run();
        }
    }
}
